<extend name="Include:Layout"/>
<block name="title">真实姓名</block>
<block name="style">
<style>

</style>
</block>

<block name="main">
	<div class="weui_tab">
		<div class="weui_navbar">
			<div class="toolbar">
		        <div class="toolbar-inner">
		            <h1 class="title" id="banji_title">真实姓名</h1>
		        </div>
		    </div>
		</div>
		<div class="weui_tab_bd container" id="container">
			<div class="weui_cell" style="background:#fff;margin-top:20px;">
	            <div class="weui_cell_hd"><label class="weui_label">真实姓名</label></div>
	            <div class="weui_cell_bd weui_cell_primary">
	                <input class="weui_input" type="text" name="realname" placeholder="请输入您的真实姓名">
	            </div>
	        </div>
		    
		    <div class="weui_btn_area">
		    	<input type="hidden" name="mobile" value="{$mobile}"/>
		        <a class="weui_btn weui_btn_primary btn_submit" href="javascript:" >完成</a>
		    </div>
		</div>
	</div>
 
</block>

<block name="script">
<script>
$(".btn_submit").click(function(){
	var mobile = $('input[name=mobile]').val();
	var realname = $('input[name=realname]').val();
	if(realname == ''){
		$.toast("请输入真实姓名");
		return false;
	}
	$.post('/home/user/dosave',{mobile:mobile,realname:realname},function(ret){
		if(ret.status){
			$.toast(ret.info,"text", function() {
				location.href= ret.url;
			});
		}else{
			$.toast(ret.info,"text");
		}
	});
})
</script>
</block>